package com.gujia.designpattern.cor.handler;

import com.gujia.designpattern.factory.PersonFactory;

/**
 * 价格处理人，用于传递请求
 */
public abstract class PriceHandler {

    /**
     * 直接后继，用于传递请求
     */
    protected PriceHandler successor;

    public void setSuccessor(PriceHandler successor) {
        this.successor = successor;
    }

    public abstract void processDiscount(float discount);

}
